<!-- Ini navigasi tambah produk -->
<ul class="nav nav-tabs" role="tablist" id="myTab">
  <li role="presentation" class="active"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab"><i class="glyphicon glyphicon-th-list"></i> Data Kategori</a></li>
</ul>

<!-- Ini tab conten navigasi -->
<div class="tab-content">
  <!-- Ini tab conten navigasi panel profile -->
  <div role="tabpanel" class="tab-pane active" id="profile">
  <br>
  <?php if($this->session->flashdata('info')) { ?>
    <div class="alert alert-info">  
        <a class="close" data-dismiss="alert">x</a>  
        <strong>Info! </strong><?php echo $this->session->flashdata('info'); ?>  
    </div>
  <?php } ?>
  <div class="row">
  <div class="col-lg-10">
    <form class="form-horizontal" role="form" name="proses_ubah_kategori" method="post" action="<?php echo site_url('admin/submit_edit_kategori_produk') ?>">  
        <input name="id" type="hidden" value="<?php echo $edit_kategori->id_kategori; ?>">
        <div class="form-group">
          <label for="inputEmail3" class="col-sm-3 control-label">Nama Kategori</label>
          <div class="col-sm-6">
            <input type="text" class="form-control" id="nama_kategori" placeholder="Nama Kategori" name="nama_kategori" value="<?php echo $edit_kategori->nama_kategori; ?>">
          </div>
        </div>

        <div class="form-group">
          <label for="inputEmail3" class="col-sm-3 control-label">Brand</label>
          <div class="col-sm-6">
            <input type="text" class="form-control" id="brand" placeholder="Brand" name="brand" value="<?php echo $brand->brand; ?>">
          </div>
        </div>
        <br>
        <div class="form-group">
          <div class="col-sm-offset-3 col-sm-10">
            <input class="btn btn-primary" type="submit" value="Simpan" />
            <input class="btn btn" type="button" name="Batal" onclick="javascript:document.location.href='<?php echo site_url('admin/kategori') ?>'" value="Batal" />
          </div>
        </div>
    </form>  
  </div>
  </div>
</div>
</div>

<!-- Fungsi Tab Pada Bootstrap -->
<script>
  $(function () {
    $('#myTab a:last').tab('show')
  })
</script>